package com.sss.service.impl;

import com.sss.mapper.DoctorMapper;
import com.sss.model.Doctor;
import com.sss.model.DoctorVO;
import com.sss.service.DoctorService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;

/**
 * 全世界我最爱朴彩英！
 *
 * @Author sss
 * @Create 2023/12/1 20:41
 * @desc
 */
@Service
public class DoctorServiceImpl implements DoctorService {

    @Autowired
    private DoctorMapper mapper;
    public Doctor findById(int id) {
        return mapper.findById(id);
    }

    public List<Doctor> findAll() {
        return mapper.findAll();
    }

    public Doctor partFind(String name, int hip) {
        return mapper.partFind(name,hip);
    }

    public Doctor ByMapFind(HashMap<String, Object> map) {
        return mapper.ByMapFind(map);
    }

    public int updateDoc(Doctor doctor) {
        return mapper.updateDoc(doctor);
    }

    public int register(Doctor doctor) {
        return mapper.register(doctor);
    }

    public int deleteDoc(int id) {
        return mapper.deleteDoc(id);
    }

    public DoctorVO DocWithHosById(int id) {
        return mapper.DocWithHosById(id);
    }


}
